namespace SimpleWebServices.Web.UI.Html.Elements
{
    using System;
    using System.Xml.Serialization;

    [XmlRoot("custom.div")]
    public sealed class DivCustomElement : CustomElement<Division>
    {
        public DivCustomElement()
        {
            this.Name = "custom.div";
            this.Type = "example";
        }

        public override IElement Retrieve()
        {
            return this.Unfold((
                "<custom.div>" +
                    "<div id='example'>" +
                        "<label id='error'/>" +
                        "<input type='text' id='control' name='control'/>" +
                    "</div>" +
                    "<validators>" +
                        "<validator display='error' for='control' type='SimpleWebServices.Web.UI.Html.Validation.StandardTextValidator, SimpleWebServices' />" +
                    "</validators>" +
                "</custom.div>").Deserialize<DivCustomElement>());
        }
    }
}